<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <title>支付结果页</title>
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="apple-mobile-web-app-capable" content="no" />
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/personalCenter.css">
</head>

<body>
<%@ include file="/WEB-INF/jsp/public.jsp"%>
    <div class="pay__status">
    <dl class="pay__status_success">
      <dt class="f0 dt tc pct100"><i class=" dib vm icon_success_01"></i><span class="dib vm prompt">支付成功！</span></dt>
      <dd class="pay_success_operate">
        <div class="ui_cells">
          <div class="ui_cell">
            <div class="ui_cell_bd">
              <a class="ui_btn ui_btn_primary btn_login_submit db tc" href="${pageContext.request.contextPath}/order/detail.do?orderID=${oi.codePre}${oi.id}${oi.codeSuf}">查看订单</a>
            </div>
            <div class="ui_cell_bd">
              <a class="ui_btn ui_btn_primary btn_login_submit db tc" href="${pageContext.request.contextPath}">继续购物</a>
            </div>
          </div>
        </div>
      </dd>
      <dd class="order_form">
        <div class="thead">以下 <em class="n">${num}</em> 件商品支付成功</div>
        <div class="tbody">
          <ul>
          <c:if test="${!empty goList}">
          	<c:forEach items="${goList}" var="go">
          	<li class="order_item">
              <div class="goods_img" onclick="goodDateil(${go.id});"><img src="${go.thumb }"></div>
              <div class="goods_name" onclick="goodDateil(${go.id});">${go.title } </div>
            </li>
          	</c:forEach>
          </c:if>

          </ul>
        </div>
      </dd>
    </dl>
  </div>
<script type="text/javascript">
	function goodDateil(goodID){
		window.location.href=contextPath+"/goods/detailPage?goodsId="+goodID;
	}
</script>
<script src="${pageContext.request.contextPath}/static/js/lib/jquery/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/lib/menu.js"></script>
</body>

</html>
